package com.hikvision.tcmcore.controller;

import com.hikvision.upc.api.TestDubboApiService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :jianghui
 * @date : 2022/10/30 16:43
 */
@RestController
@RequestMapping("dubbo")
public class TcmDubboController {

    @Reference
    TestDubboApiService testDubboApiService ;

    @GetMapping("send")
    public String sendDubbo() {
        return testDubboApiService.sendDubboWay() ;
    }

    @GetMapping("send2")
    public String sendDubbo2() {
        return testDubboApiService.sendDubboWay2() ;
    }
}
